<?php

return [
	'routes'	=> array(
		array('GET','/demo/[i:id]/[a:name]','App\Demo\Controllers\HomeController@home','demoName'),
		array('GET','/','App\Demo\Controllers\HomeController@home','indexName'),
		//array('GET','/doo','App\Demo\Controllers\IndexController@doo','dooName'),
		array('GET','/articles','App\Demo\Controllers\ArticleController@articleList','listArticleName'),
		array('GET','/testrequest','App\Demo\Controllers\HomeController@testRequest','testRequestName'),
		array('POST','/users/[i:id]', 'users@update', 'update_user'),
		array('DELETE','/users/[i:id]', 'users@delete', 'delete_user'),
		array('POST','/doo/[i:id]/[a:name]','App\Demo\Controllers\HomeController@doo','route_name'),
		array('GET','/img','App\Demo\Controllers\ImgController@upload','imgUpload'),
		array('POST','/img','App\Demo\Controllers\ImgController@uploadImg'),
		array('GET','/callback',function(){
			echo 'call back test!';
		})
	),

	'base_path'	=>	'',

	'match_types'	=>	array(
		'i'  => '[0-9]++',
		'a'  => '[0-9A-Za-z]++',
		'h'  => '[0-9A-Fa-f]++',
		'*'  => '.+?',
		'**' => '.++',
		''   => '[^/\.]++'
	)

];